Java applet properties

After inserting a Java applet (see Inserting a Java applet), use the Property inspector to set parameters. To view the following properties in the Property inspector, select a Java applet.

The Property inspector initially displays the most commonly used properties. Click the expander arrow in the lower right corner to see all properties.

Name Specifies a name to identify the applet for scripting. Enter a name in the unlabeled field on the far left side of the Property inspector.

W and H Specify the width and height of the applet in pixels. You can also specify the following units: pc (picas), pt (points), in (inches), mm (millimeters), cm (centimeters), or % (percentage of the parent object's value). The abbreviations must follow the value without a space: for example, 3mm.

Code Specifies the content file of the applet. Enter a file name, or click the folder icon to browse to a file.

Base Identifies the folder containing the selected applet. When you choose an applet, this field is filled automatically.

Align Determines how the object is aligned on the page. See Aligning elements for a description of each option.

Alt Specifies alternative content (usually an image) to be displayed if the user's browser doesn't support Java applets or has Java disabled. If you enter text, Dreamweaver renders the text with the ALT attribute of the APPLET tag. If you choose an image, Dreamweaver inserts an IMG tag between the opening and closing APPLET tags.

Note: To specify alternative content that is viewable in both Netscape Navigator (with Java disabled) and Lynx (a text-based browser), select an image and then manually add an ALT attribute to the IMG tag in the HTML Source inspector.

V Space and H Space Specify the amount of white space in pixels above, below, and on both sides of the applet.

Parameters Opens a dialog box for entering additional parameters to pass to the applet. See About parameters. Many applets respond to special parameters.